package com.scrx.ymg.dao.user;

import java.util.List;
import java.util.Map;

import com.scrx.ymg.dao.base.IBaseDao;
import com.scrx.ymg.entity.AgentDrawings;
import com.scrx.ymg.entity.Distribution;
import com.scrx.ymg.entity.User;

public interface IUserDao extends IBaseDao {
	
	public List findAll();
    
	public List hello();
	
	public User findById(Integer id);
	
	/**
	 * 保存消费者对象
	 * @param user
	 */
	public void save(User user);
	
	public List<User> getUsers(User user, int pageNum, int pageCount);
	
	/**
	 * 根据userid查询用户
	 * @return
	 */
	public User findByUserID(String userid);
	/**
	 * 保存消费者对象并返回user对象
	 * @param user
	 * @return
	 */
	public User saveGetUserID(User user);
	
	/**
	 * 根据超市id得到用户信息
	 * @param superId
	 * @return
	 */
	public List<User> getMemberInfoBySuperID(int superId);
    
	/**
	 * 通用查询用户信息
	 * @param user
	 * @param pageNum
	 * @param pageCount
	 * @return
	 */
	public Map<Object, Object> getUserInfo(User user, int pageNum, int pageCount);
    
	/**
	 * 更新消费者用户
	 * @param user
	 * @return
	 */
	public String updateUser(User user);
	
	public Integer getDownlineNumByUserId(int userId);

	public String insertAndUpdateObjects(Object insert, Object update);

	public String updateObjects(List<Object> objects);

	public Map<Object, Object> getUserXiaXian(int userId);


}
